package com.fanqwz.hexieshe.domain.repository;

import com.fanqwz.hexieshe.domain.Article;
import com.fanqwz.hexieshe.domain.Category;
import com.fanqwz.hexieshe.domain.Comment;
import com.fanqwz.hexieshe.domain.HeadLine;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by fanqw on 2017/6/29.
 */

public interface Repository {
    Observable<List<HeadLine>> headlines(int page, String category, String tag);
    Observable<Article> article(long id);
    Observable<List<Comment>> comments(long articleID);
    Observable<List<Category>> categories();
    void commitComment(long articleID, String comment);
}
